﻿using System.Web;
using System.Web.SessionState;
using System.Security.Principal;

namespace Mvp
{
    public abstract class Presenter<T> where T:IView
    {
        public T View { get; protected set; }

        public Presenter(T view)
        {
            View = view;
        }

        protected HttpContext Context
        {
            get { return HttpContext.Current; }
        }

        protected IPrincipal User
        {
            get { return Context.User; }
        }
    }
}
